package com.gk.carshopsys.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.gk.carshopsys.utils.CarConverter;
import com.gk.carshopsys.utils.CustConverter;
import com.gk.carshopsys.utils.EmpConverter;

import java.sql.Date;


public class CarOrder {
    @ExcelIgnore
    private Long id;
    @ExcelProperty(value = "订单号",index = 0)
    private String ordernum;
    @ExcelIgnore
    private Long carid;
    @ExcelIgnore
    private Integer empid;
    @ExcelIgnore
    private Long custid;
    @ExcelProperty(value = "创建时间",index = 5)
    private String create_time;
    @ExcelProperty(value = "更新时间",index = 6)
    private String update_time;
    @ExcelProperty(value = "状态",index = 7)
    private String state;
    @ExcelProperty(value = "备注",index = 8)
    private String remarks;
    @ExcelProperty(value = "数量",index = 4)
    private Integer quantity;
    @ExcelProperty(value = "商品信息",index = 1,converter = CarConverter.class)
    private Car car;
    @ExcelProperty(value = "办理人",index = 2,converter = EmpConverter.class)
    private Emp emp;
    @ExcelProperty(value = "客户",index = 3,converter = CustConverter.class)
    private Cust cust;

    public CarOrder() {
    }

    public CarOrder(Long id, String ordernum, Long carid, Integer empid, Long custid, String create_time, String update_time, String state, String remarks, Integer quantity, Car car, Emp emp, Cust cust) {
        this.id = id;
        this.ordernum = ordernum;
        this.carid = carid;
        this.empid = empid;
        this.custid = custid;
        this.create_time = create_time;
        this.update_time = update_time;
        this.state = state;
        this.remarks = remarks;
        this.quantity = quantity;
        this.car = car;
        this.emp = emp;
        this.cust = cust;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public Long getCarid() {
        return carid;
    }

    public void setCarid(Long carid) {
        this.carid = carid;
    }

    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    public Long getCustid() {
        return custid;
    }

    public void setCustid(Long custid) {
        this.custid = custid;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public Emp getEmp() {
        return emp;
    }

    public void setEmp(Emp emp) {
        this.emp = emp;
    }

    public Cust getCust() {
        return cust;
    }

    public void setCust(Cust cust) {
        this.cust = cust;
    }

    @Override
    public String toString() {
        return "CarOrder{" +
                "id=" + id +
                ", ordernum='" + ordernum + '\'' +
                ", carid=" + carid +
                ", empid='" + empid + '\'' +
                ", custid=" + custid +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", state='" + state + '\'' +
                ", remarks='" + remarks + '\'' +
                ", quantity=" + quantity +
                ", car=" + car +
                ", emp=" + emp +
                ", cust=" + cust +
                '}';
    }
}
